#ifndef __MPU6050_H
#define __MPU6050_H


#include "stm32f10x.h"                  // Device header
#include "I2CA.h"
#include "MPU6050_REG.h"


void MPU6050_writeR(uint8_t Raddress,uint8_t Data);//指定地址写寄存器//8位的寄存器地址//8位的数据


uint8_t MPU6050_readR(uint8_t Raddress);//指定地址读



void MPU6050_init(void);


void MPU6050_getdata(int16_t*ACCX,int16_t*ACCY,int16_t*ACCZ,int16_t*GYROX,int16_t*GYROY,int16_t*GYROZ);






#endif

